API Documentation
Static Public Member Functions | List of all members
nkWinUi::StructToString Class Reference

Offers utilities to convert from structures or enums to strings, and vice versa. More...

Static Public Member Functions

static nkMemory::StringView getStringFromComponentType (COMPONENT_TYPE type)
 
static COMPONENT_TYPE getComponentTypeFromString (const nkMemory::StringView &name)
 
static nkMemory::StringView getStringFromLayoutType (LAYOUT_TYPE type)
 
static LAYOUT_TYPE getLayoutTypeFromString (const nkMemory::StringView &name)
 
static nkMemory::StringView getStringFromRelativePosition (RELATIVE_POSITION position)
 
static RELATIVE_POSITION getRelativePositionFromString (const nkMemory::StringView &name)
 

Detailed Description

Offers utilities to convert from structures or enums to strings, and vice versa.

Member Function Documentation

◆ getStringFromComponentType()

static nkMemory::StringView nkWinUi::StructToString::getStringFromComponentType ( COMPONENT_TYPE  type)
static

Converts a component type to its attached string.

Parameters
typeThe type to convert.
Returns
The type converted into a string.

◆ getComponentTypeFromString()

static COMPONENT_TYPE nkWinUi::StructToString::getComponentTypeFromString ( const nkMemory::StringView name)
static

Converts a string to its attached component type.

Parameters
nameThe string describing a type.
Returns
The type described by the string.

◆ getStringFromLayoutType()

static nkMemory::StringView nkWinUi::StructToString::getStringFromLayoutType ( LAYOUT_TYPE  type)
static

Converts a layout type to its attached string.

Parameters
typeThe type to convert.
Returns
The type converted into a string.

◆ getLayoutTypeFromString()

static LAYOUT_TYPE nkWinUi::StructToString::getLayoutTypeFromString ( const nkMemory::StringView name)
static

Converts a string to its attached layout type.

Parameters
nameThe string describing a type.
Returns
The type described by the string.

◆ getStringFromRelativePosition()

static nkMemory::StringView nkWinUi::StructToString::getStringFromRelativePosition ( RELATIVE_POSITION  position)
static

Converts a relative position type to its attached string.

Parameters
positionThe type to convert.
Returns
The type converted into a string.

◆ getRelativePositionFromString()

static RELATIVE_POSITION nkWinUi::StructToString::getRelativePositionFromString ( const nkMemory::StringView name)
static

Converts a string to its attached relative position type.

Parameters
nameThe string describing a type.
Returns
The type described by the string.

The documentation for this class was generated from the following file: